/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.polymorphism.model;

/**
 *
 * @author Jameel
 */
public class ManagerPoly extends EmployeePoly implements EmpPoly{
    private double commision;
    
    
    @Override
    public String toString() {
        return super.toString() + " " + commision;
    }
    
    public ManagerPoly() {
    
    }
    public ManagerPoly(String first, String last, String ID, double sal, double sale ) {
        super(first, last, ID, sal, sale);    
    }
    
    @Override
    public double payment(double sale)
    {
        return commision = (0.15 * sale) ;
    }

    public double getPay() {
        return commision;
    }

    public void setPay(double pay) {
        this.commision = pay;
    }    
}
